package uit.comstore.model.blo;

import java.util.List;

import org.hibernate.Query;
import org.hibernate.Session;
import uit.comstore.model.entity.ImportBillDetail;
import uit.comstore.utils.HibernateSessionFactory;

public class ImportBillDetailBLO {
	@SuppressWarnings("unchecked")
	
	public List<ImportBillDetail> list() {
		List<ImportBillDetail> importBillDetails = null;
		Session session = HibernateSessionFactory.getSessionFactory().getCurrentSession();	
		session.beginTransaction();
		Query query = session.createQuery("from ImportBillDetail");
		importBillDetails = query.list();
		session.getTransaction().commit();
		return importBillDetails;
	}
}
